pull: Close another race
authorColin Walters <walters@verbum.org>
Mon, 20 Jan 2014 11:17:45 +0000 (06:17 -0500)
committerColin Walters <walters@verbum.org>
Mon, 20 Jan 2014 11:26:49 +0000 (06:26 -0500)
commit96401717115be5843ced5c9eb31e5829c55436c4
treeb493611120ec9e99c2678f158be4ee53676b4339
parent3cd866556c1163128ca2310d38fb4e3cd43d39e2
pull: Close another race

Only send _IDLE messages if and only if we state transition the main
thread (from idle -> !idle or !idle -> idle).  This ensures that we
don't send IDLE, then get it back, and process that when we're !idle.
src/libostree/ostree-repo-pull.c